<?php
header("content-type;text/html;charset=utf-8");


$servername = "127.0.0.1";
$username = "root";
$password = "";
$bdname = "bbs";
//创建链接
$conn = new mysqli($servername,$username,$password,$bdname);
$conn->query("SEt NAMES UtF8");
//检测链接

 if ($conn->connect_error){
  die("连接失败;" . $conn->connect_error);
  }
  //echo "连接成功";
 
?>

